---
title: Dropzone
description: A drop zone is an area into which one or multiple objects can be dragged and dropped.
featured: true
component: true
links:
  doc: https://react-spectrum.adobe.com/react-aria/DropZone.html
---

There is no native element to implement a drop zone in HTML. DropZone helps achieve accessible dropzone components that can be styled as needed.

<ComponentPreview name="dropzone-demo" />

## Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Copy & Paste</TabsTrigger>
</TabsList>

<TabsContent value="cli">

<PackageManagerTabs>
  <PackageManagerContent value="npm">
    ```bash
    npx shadcn@latest add https://jollyui.dev/[[STYLE]]/dropzone
    ```
  </PackageManagerContent>
  <PackageManagerContent value="pnpm">
    ```bash
    pnpm dlx shadcn@latest add https://jollyui.dev/[[STYLE]]/dropzone
    ```

  </PackageManagerContent>
  <PackageManagerContent value="bun">
    ```bash
    bunx --bun shadcn@latest add https://jollyui.dev/[[STYLE]]/dropzone
    ```
  </PackageManagerContent>
  <PackageManagerContent value="yarn">
    ```bash 
    npx shadcn@latest add https://jollyui.dev/[[STYLE]]/dropzone
    ```
  </PackageManagerContent>
</PackageManagerTabs>

</TabsContent>

<TabsContent value="manual">

<Steps>

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="dropzone" />

<Step>Update the import paths to match your project setup.</Step>

</Steps>

</TabsContent>

</Tabs>

## Composed Components

A DropZone uses the following components, which may also be used standalone or reused in other components.

<ComponentCards>
  <ComponentCard component="fileTrigger" />
</ComponentCards>

### Basic

<ComponentPreview name="dropzone-demo" />

### FileTrigger

To allow the selection of files from the user's device, pass [FileTrigger](../../../docs/components/file-trigger) as a child of DropZone.

<ComponentPreview name="dropzone-file" />
